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) --- .../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 ------ 378 files changed, 331348 deletions(-) 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 (limited to 'vendor/github.com/go-fed/activity/streams/impl/activitystreams') 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 -} -- cgit v1.2.3